/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package MathLib.MyMatrices;

/**
 *
 * @author marko
 */
public class MatrixEception extends Exception{
    /**
	 * 
	 */
	private static final long serialVersionUID = 6670218674296071428L;
	
	protected int ErrorCode;

    public MatrixEception(int ErrorCode) {
        this.ErrorCode = ErrorCode;
    }
        
    public String getMessage() {
        String message = "";
        
        switch (ErrorCode){
            case 0 : message = "Dementions are not equal";
            case 1 : message = "Error solving Slar with Gauss method";
            case 2 : message = "not all parameters are initialized";
            case 3 : message = "matrix is not simetric and is used in the method for solving SLARS with a sumetric matrices";
            case 4 : message = "taking a sqare root from \"-\" in SqareRootMethod. Cannot be Solved with this method";
            case 5 : message = "division by 0 in SqareRootMethod. Cannot be Solved with this method";
            case 6 : message = "division by 0 in LU. Cannot be Solved with this method";
            case 7 : message = "dimentions of vector and matrix are not equal";
            default: message = "Unknown type of error";
        }
                
                
        return message;
    }
    
    
    
}
